package com.guoning.office_system.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AccountingRecord {
    private Long id;

    private String recordCode;

    private Long userId;

    private Long roomId;

    private String remark;

    private Integer recordStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String creator;

    private Date createTime;

    private String modifier;

    private Date modifiedTime;

    private Integer dr;

    public AccountingRecord(Long id, String recordCode, Long userId, Long roomId, String remark, Integer recordStatus, Date beginTime, Date endTime, String creator, Date createTime, String modifier, Date modifiedTime, Integer dr) {
        this.id = id;
        this.recordCode = recordCode;
        this.userId = userId;
        this.roomId = roomId;
        this.remark = remark;
        this.recordStatus = recordStatus;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.creator = creator;
        this.createTime = createTime;
        this.modifier = modifier;
        this.modifiedTime = modifiedTime;
        this.dr = dr;
    }

    public AccountingRecord() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRecordCode() {
        return recordCode;
    }

    public void setRecordCode(String recordCode) {
        this.recordCode = recordCode == null ? null : recordCode.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(Integer recordStatus) {
        this.recordStatus = recordStatus;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier == null ? null : modifier.trim();
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public Integer getDr() {
        return dr;
    }

    public void setDr(Integer dr) {
        this.dr = dr;
    }
}